j=0
k=0
for i in range(1,101):
    if i%2==0:
        j+=i
    else:
        k+=i
print(j)
print(k)

i=0
j=0
k=0
while i<=100:
    if i%2==0:
        j+=i
    else:
        k+=i
    i+=1
print(j)
print(k)
